package com.itouchtv.yang.apiCore;

import com.itouchtv.yang.core.tools.ConfigManager;

import java.util.HashMap;
import java.util.Map;

public class Header {

    public static Map getAdPlantformHeaders(){
        Map<String,String> headers = new HashMap<>();
        headers.put("X-ITOUCHTV-USER-PK","3");
        headers.put("Authorization",
                "Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzIiwidXNlclRva2VuIjoiMTgyMzIzOTY0ZTk1NDUxYzk2MjJmMjI0YWE2ZTMxZGEiLCJpc3MiOiJ3d3cuaXRvdWNodHYuY24iLCJ1c2VyVHlwZSI6Im1hbmFnZW1lbnRTeXN0ZW0iLCJpYXQiOjE1MzY2Mjg3MzJ9.y5URj1KrX_TQ18vWxTfD2G_0fvheaqRJ3VFJA5HAWas");
        headers.put("Origin", "http://test-ad.itouchtv.cn");
        headers.put("Content-Type","application/json");
        return headers;
    }

    public static Map getGzjpHeaders(){
        Map<String,String> headers = new HashMap<>();
        headers.put("Accept"," image/webp,image/apng,image/*,*/*;q=0.8");
        headers.put("Accept-Encoding", "gzip, deflate");
        headers.put("Accept-Language", " zh-CN,zh;q=0.9");
        headers.put("Connection"," keep-alive");
        headers.put("Cookie", "ASP.NET_SessionId=nyfqde1czungcvwuvxupuzq2; route=c7d36652f7753c846748c72f548380d5; __RequestVerificationToken=tzfR31VZ3lMgqAENI5f5CwlSQEeWL9fIiNv1r15FZUfc4jlc7x6NPVu3wwQ6CtTX5Mz1zjgMpL4CUDiXSuk96ggVOe3Q6NLRTJRjLA5adizD8j798i_PWeRy_mOZB2lnG3wc7R3UKjsIuudtwJtUzQ2");
        headers.put("Host"," www.gzjponline.com");
        headers.put("Referer","http://www.gzjponline.com/Jp/Booking/"+ConfigManager.getProperty("roomId",""));
        headers.put("User-Agent"," Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36");
        return headers;
    }

    public static Map getGzjpPostHeader(){
        Map<String,String> headers = new HashMap<>();
        headers.put("Accept","*/*");
        headers.put("Accept-Encoding", "gzip, deflate");
        headers.put("Accept-Language", " zh-CN,zh;q=0.9");
        headers.put("Connection"," keep-alive");
        headers.put("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
        headers.put("Cookie", "ASP.NET_SessionId=nyfqde1czungcvwuvxupuzq2; route=c7d36652f7753c846748c72f548380d5; __RequestVerificationToken=tzfR31VZ3lMgqAENI5f5CwlSQEeWL9fIiNv1r15FZUfc4jlc7x6NPVu3wwQ6CtTX5Mz1zjgMpL4CUDiXSuk96ggVOe3Q6NLRTJRjLA5adizD8j798i_PWeRy_mOZB2lnG3wc7R3UKjsIuudtwJtUzQ2");
        headers.put("Host"," www.gzjponline.com");
        headers.put("Origin","http://www.gzjponline.com");
        headers.put("Referer","http://www.gzjponline.com/Jp/Booking/"+ConfigManager.getProperty("roomId",""));
        headers.put("User-Agent"," Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36");
        headers.put("X-Requested-With","XMLHttpRequest");
        return headers;
    }

    public static Map getSchoolMsgHeaders(){
        Map<String,String> headers = new HashMap<>();
        headers.put("Accept-Encoding", "gzip, deflate");
        headers.put("Accept-Language", " zh-CN,zh;q=0.9");
        headers.put("Connection"," keep-alive");
        headers.put("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
        headers.put("Cookie", "ASP.NET_SessionId=nyfqde1czungcvwuvxupuzq2; route=c7d36652f7753c846748c72f548380d5; __RequestVerificationToken=tzfR31VZ3lMgqAENI5f5CwlSQEeWL9fIiNv1r15FZUfc4jlc7x6NPVu3wwQ6CtTX5Mz1zjgMpL4CUDiXSuk96ggVOe3Q6NLRTJRjLA5adizD8j798i_PWeRy_mOZB2lnG3wc7R3UKjsIuudtwJtUzQ2");
        headers.put("Host"," www.gzjponline.com");
        headers.put("Referer","http://www.gzjponline.com/Jp/BookOnline");
        headers.put("User-Agent"," Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36");
        headers.put("X-Requested-With","XMLHttpRequest");
        return headers;
    }

    public static Map getRecognitionImageHeaders(){
        Map<String,String> body = new HashMap<>();
        body.put("appCode","03B7A78BB23761E6113BB24535390446");
        body.put("appKey","AKID1h5lZVe9KE9YqJr3ST8jGOC6HlMa1tQ30RLL");
        body.put("appSecret","26j3pG81juIliM67isHhb1a10sZoccd4Waxtw8rb");
        body.put("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
        return body;
    }
}
